import request from '@/utils/request'

export function findAllStudent(studentFindByPage){
    return request({
      url:'user/findStudentBySearch',
      method: 'post',
      data: studentFindByPage
    })
  }

export function addStudent(form){
    return request({
        url:'user/addStudent',
        method :'post',
        data:form
    })
}

export function deleteStudent(userId){
    return request({
        url:'user/deleteStudent/'+userId,
        method :'post',
        
    })
}

export function updateStudent(form){
    return request({
        url:'user/updateStudent',
        method :'post',
        data:form
    })
}

export function addStu(data){
    return request({
        url:'student/add',
        method :'post',
        data
    })
}